import request from '@/utils/request.js'
export const page = (data) => {
    return request.get(
        '/swiper/getPage',
        {
            params:data
        }
    )
}
export const add = (data) => {
    return request.post(
        '/swiper/add',
        data
    )
}

export const dele = (data) => {
    return request.delete(
        `/swiper/delete/${data}`,
    )
}
export const update =(id,data) =>{
    return request.put(
        `/swiper/update/${id}`,
        data
    )
}